package com.hnichr.ump.common.doc.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.hnichr.ump.common.entity.UmpEntity;
import com.mxpioframework.jpa.annotation.Generator;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "mb_user_group")
@Schema(description = "用户与组关系表")
public class GroupUser extends UmpEntity {
	private static final long serialVersionUID = 1103765541065900838L;

	@Id
	@Generator
	@Column(name = "RID", updatable = false)
	@Schema(description = "ID")
	private String id;

	@Column(name = "GROUP_ID")
	@Schema(description = "组ID")
	private String groupId;

	@Column(name = "USER_ID")
	@Schema(description = "用户ID")
	private String userId;

	@Column(name = "USER_NAME")
	@Schema(description = "用户姓名")
	private String userName;

	@Column(name = "USER_TYPE")
	@Schema(description = "用户类型")
	private String userType;
}
